<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
<title>用户中心</title>
<include file="Public/head0" />
</head>

<body>

<include file="Public/left0" />
  <div class="right-product view-product right-full">
     <div class="container-fluid">
                
                <div class="message-manage info-center">
                    <div class="page-header">
                      <div class="pull-left">
                        <h4>消息中心</h4>      
                    </div>
                            </div>
                    <div class="info-center-title">
                        <span class="padding-large-right manage-title pull-left">
                           <a class="active" href="#">全部消息</a>
                        </span>
                        
                    </div>
                    <div class="clearfix"></div>
                    <div class="table-margin">
                      <table class="table table-bordered table-header">
                      <thead>
                        <tr>
                        <th>消息编号</th>
                        <th>标题</th>
                        <th>内容</th>
                        <th>发布时间</th>
                        <th>管理员ID</th>
                        <th>操作</th>
                        </tr>
                         </thead>
                         <tbody>
                         <volist name="index" id="vo"  >  
            <tr>
                    <td>{$vo.n_id}</td>
                    <td>{$vo.n_title}</td>
                    <td>{$vo.n_content}</td>
                    <td>{$vo.n_date}</td>
                    <td>{$vo.admin_id}</td>
                    
                    
                    <td>
                        <div>
                      
                        <ul>
                       
                        <a href="delnotice/n_id/{$vo.n_id}" onclick="return confirm('你确定要删除吗？')">
                        <i class="icon-trash"></i>删除</a>
                        </ul>
                      </div>
                    </td>
                    
                      

                 
                        </tr>    
                        </volist>      
                         </tbody>
                      </table>
                    </div>
                    <div class="field">
          <li><a href="addNotice"> <button class="button bg-main icon-check-square-o" type="submit"> 添加</button> </a></li>  
        </div>
                </div>
                <div class="show-page hidden">
                    <ul>
                    </ul>
                </div>
        </div>
  </div>
</div>
<script type="text/javascript">
$(function(){
/*换肤*/
$(".dropdown .changecolor li").click(function(){
    var style = $(this).attr("id");
    $("link[title!='']").attr("disabled","disabled"); 
    $("link[title='"+style+"']").removeAttr("disabled"); 

    $.cookie('mystyle', style, { expires: 7 }); // 存储一个带7天期限的 cookie 
})
var cookie_style = $.cookie("mystyle"); 
if(cookie_style!=null){ 
    $("link[title!='']").attr("disabled","disabled"); 
    $("link[title='"+cookie_style+"']").removeAttr("disabled"); 
} 

/*左侧导航栏显示隐藏功能*/
$(".subNav").click(function(){              
            /*显示*/
            if($(this).find("span:first-child").attr('class')=="title-icon glyphicon glyphicon-chevron-down")
            {
                $(this).find("span:first-child").removeClass("glyphicon-chevron-down");
                $(this).find("span:first-child").addClass("glyphicon-chevron-up");
                $(this).removeClass("sublist-down");
                $(this).addClass("sublist-up");
            }
            /*隐藏*/
            else
            {
                $(this).find("span:first-child").removeClass("glyphicon-chevron-up");
                $(this).find("span:first-child").addClass("glyphicon-chevron-down");
                $(this).removeClass("sublist-up");
                $(this).addClass("sublist-down");
            }   
        // 修改数字控制速度， slideUp(500)控制卷起速度
        $(this).next(".navContent").slideToggle(300).siblings(".navContent").slideUp(300);
    })
/*左侧导航栏缩进功能*/
$(".left-main .sidebar-fold").click(function(){

    if($(this).parent().attr('class')=="left-main left-full")
    {
        $(this).parent().removeClass("left-full");
        $(this).parent().addClass("left-off");
        
        $(this).parent().parent().find(".right-product").removeClass("right-full");
        $(this).parent().parent().find(".right-product").addClass("right-off");
        
        }
    else
    {
        $(this).parent().removeClass("left-off");
        $(this).parent().addClass("left-full");
        
        $(this).parent().parent().find(".right-product").removeClass("right-off");
        $(this).parent().parent().find(".right-product").addClass("right-full");
        
        }
    })  
 
  /*左侧鼠标移入提示功能*/
        $(".sBox ul li").mouseenter(function(){
            if($(this).find("span:last-child").css("display")=="none")
            {$(this).find("div").show();}
            }).mouseleave(function(){$(this).find("div").hide();})  
})
</script>
</body>
</html>



